//
//  EFengComposeImageView.m
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/3/1.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import "EFengComposeImageView.h"

@interface EFengComposeImageView ()

WeakProperty UIButton *delBtn;

@end


@implementation EFengComposeImageView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = YES;
        
        
        UIButton *delBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [delBtn setImage:[UIImage imageNamed:@"aaaa"] forState:UIControlStateNormal];
        [delBtn addTarget:self action:@selector(delImage) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:delBtn];
        self.delBtn = delBtn;
    }
    return self;
}

- (void)delImage
{
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.delBtn.frame = CGRectMake(self.width - 40.0f, 0, 40.0f, 40.0f);
}
@end
